package com.qububu.common.position.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qububu.common.position.dto.PositionInfoDto;
import com.qububu.common.position.service.PositionService;
import com.qububu.db.dao.PositionDao;

@Service
public class PositionServiceImpl implements PositionService {

	@Resource
	private PositionDao positionDao;
	
	public boolean doAddPosition(PositionInfoDto positionInfo) {
		return positionDao.addPositionInfo(positionInfo);
	}

	public List<PositionInfoDto> getPositionList() {
		return positionDao.getPositionInfoList();
	}

	public boolean doModifyPosition(String positionId, String positionName) {
		return positionDao.modifyPositionMessage(positionId, positionName);
	}

	public boolean doDeletePosition(String positionId) {

		return positionDao.deletePosition(positionId);
	}

}
